OPC Studio User's Guide and Reference
File License Store
Concepts > Development Concepts > Application Deployment > Licensing Elements > File License Store

With the File License Store, you deploy your license key in a file that resides in the file system.

This functionality is not available under (or the text does not apply to) COM development platform.

In order to register the file containing the license key: At the beginning of your code, before you call any QuickOPC or OPC Wizard operations, obtain the static Instance Field from the LicensingManagement Class, and call the RegisterFile Method or RegisterFileWithExistenceCheck Method with appropriate arguments:

The third argument is the full (absolute) path and name to the license key file.

It is up to your code to determine the location (directory) and construct the path. In many cases, method like  Assembly.GetExecutingAssembly Method can help you with that.

Your build and deployment procedures then need to make sure that the license key file is placed at the chosen location when your program runs.

The available registration methods differ as follows:

The componentName and licenseId arguments of the LicensingManagement.RegisterXXXX methods are case-insensitive.

The license key  registration call must be made before any QuickOPC or OPC Wizard operation is performed, or before you attempt to retrieve the license info.

Note that the actual validity of the license is not checked at the time when the location is registered.

See Also